# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-heapdict
pkgver=1.0.1
pkgrel=5
pkgdesc="A heap with decrease-key and increase-key operations"
url="https://stutzbachenterprises.com"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/H/HeapDict/HeapDict-$pkgver.tar.gz"
options="!check" # Uses internal private API python module
builddir="$srcdir/HeapDict-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="d82e1eaca4b51da1cfd7a43689796523863d4173b4c23aec4c259025dca7775e5aeb58abef66ae8374e996d00aa07e6728d0f2293304202ea0bd3369fb6010be  HeapDict-1.0.1.tar.gz"
